package com.oron3.lock;

import java.io.Serializable;

import com.ofek.applicationbase.forms.FormField;
import com.ofek.base.db.DataField;
import com.ofek.base.db.DataTypeClass;

@DataTypeClass
public class Secret implements Serializable {
	public Secret(final long sid2) {
		sid = sid2;
	}

	@DataField(isKey = true,isAutoIncrement=true,isNullable=false)
	@FormField
	public long sid;
	public Secret(final long sid, final String title, final String text) {
		this.sid = sid;
		this.title = title;
		this.text = text;
	}
	public Secret() {
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return title;
	}
	@DataField(isNullable=false)
	@FormField
	public String title;
	@DataField
	@FormField
	public String text;
}

